/* Class14_Sub8_Sub18 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class14_Sub8_Sub18 extends Class14_Sub8
{
    public static int anInt4382;
    public static boolean aBoolean4383;
    public static Class9 aClass9_4384;
    public static Class14_Sub2_Sub19[] aClass14_Sub2_Sub19Array4385;
    public static int anInt4386 = 0;
    public static int anInt4387;
    public static int[][] anIntArrayArray4388;
    public static int anInt4389;
    public static int anInt4390;
    public static int anInt4391;
    public static short[] aShortArray4392;
    public static Class124 aClass124_4393;
    public static int anInt4394;
    public static int anInt4395;
    public static int anInt4396;
    public static int anInt4397;
    public Class125[] aClass125Array4398;
    
    public static void method573(int arg0) {
	try {
	    anIntArrayArray4388 = null;
	    aClass9_4384 = null;
	    aShortArray4392 = null;
	    aClass124_4393 = null;
	    if (arg0 != 3)
		anInt4394 = -19;
	    aClass14_Sub2_Sub19Array4385 = null;
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       "kg.E(" + arg0 + ')');
	}
    }
    
    public static void method574(int arg0, int arg1, int arg2, int arg3,
				 Class124 arg4) {
    while_396_:
	do {
	while_395_:
	    do {
		Class94 class94;
		do {
		    try {
			anInt4389++;
			class94
			    = Class14_Sub6.method464(arg1, arg3, (byte) -19);
			if (class94 != null)
			    break;
		    } catch (RuntimeException runtimeexception) {
			break while_395_;
		    }
		    return;
		} while (false);
		boolean bool;
		do {
		    try {
			if (null != class94.anObjectArray1535) {
			    Class14_Sub21 class14_sub21 = new Class14_Sub21();
			    class14_sub21.anInt3108 = arg0;
			    class14_sub21.aClass124_3101 = arg4;
			    class14_sub21.anObjectArray3115
				= class94.anObjectArray1535;
			    class14_sub21.aClass94_3116 = class94;
			    Class133_Sub3.method1830(class14_sub21,
						     -1976917689);
			}
			bool = true;
			if (-1 > (class94.anInt1498 ^ 0xffffffff))
			    bool
				= Class14_Sub15.method874((byte) 123, class94);
			if (arg2 >= 118)
			    break;
		    } catch (RuntimeException runtimeexception) {
			break while_395_;
		    }
		    return;
		} while (false);
		do {
		    try {
			if (bool)
			    break;
		    } catch (RuntimeException runtimeexception) {
			break while_395_;
		    }
		    return;
		} while (false);
		do {
		    try {
			if (Class14_Sub3.method448((byte) 124, -1 + arg0,
						   client.method46(class94)))
			    break;
		    } catch (RuntimeException runtimeexception) {
			break while_395_;
		    }
		    return;
		} while (false);
		try {
		    if ((arg0 ^ 0xffffffff) == -2) {
			Class55.aClass14_Sub10_Sub1_891.method843(0, 233);
			Class55.aClass14_Sub10_Sub1_891.method803(arg3, 93);
			Class14_Sub30.anInt3282++;
			Class55.aClass14_Sub10_Sub1_891.method833((byte) 92,
								  arg1);
		    }
		    if (-3 == (arg0 ^ 0xffffffff)) {
			Class62.anInt987++;
			Class55.aClass14_Sub10_Sub1_891.method843(0, 21);
			Class55.aClass14_Sub10_Sub1_891.method803(arg3, 82);
			Class55.aClass14_Sub10_Sub1_891.method833((byte) 117,
								  arg1);
		    }
		    if (3 == arg0) {
			Class56.anInt916++;
			Class55.aClass14_Sub10_Sub1_891.method843(0, 169);
			Class55.aClass14_Sub10_Sub1_891.method803(arg3, 71);
			Class55.aClass14_Sub10_Sub1_891.method833((byte) 85,
								  arg1);
		    }
		    if (4 == arg0) {
			Class55.aClass14_Sub10_Sub1_891.method843(0, 214);
			Class55.aClass14_Sub10_Sub1_891.method803(arg3, 108);
			Class133_Sub5.anInt3627++;
			Class55.aClass14_Sub10_Sub1_891.method833((byte) 119,
								  arg1);
		    }
		    if (-6 == (arg0 ^ 0xffffffff)) {
			Class55.aClass14_Sub10_Sub1_891.method843(0, 173);
			Class102.anInt1708++;
			Class55.aClass14_Sub10_Sub1_891.method803(arg3, 89);
			Class55.aClass14_Sub10_Sub1_891.method833((byte) 124,
								  arg1);
		    }
		    if (-7 == (arg0 ^ 0xffffffff)) {
			Class134.anInt2578++;
			Class55.aClass14_Sub10_Sub1_891.method843(0, 232);
			Class55.aClass14_Sub10_Sub1_891.method803(arg3, 117);
			Class55.aClass14_Sub10_Sub1_891.method833((byte) 107,
								  arg1);
		    }
		    if ((arg0 ^ 0xffffffff) == -8) {
			Class55.aClass14_Sub10_Sub1_891.method843(0, 133);
			Class63.anInt996++;
			Class55.aClass14_Sub10_Sub1_891.method803(arg3, 116);
			Class55.aClass14_Sub10_Sub1_891.method833((byte) 96,
								  arg1);
		    }
		    if (arg0 == 8) {
			Class33.anInt574++;
			Class55.aClass14_Sub10_Sub1_891.method843(0, 102);
			Class55.aClass14_Sub10_Sub1_891.method803(arg3, 120);
			Class55.aClass14_Sub10_Sub1_891.method833((byte) 126,
								  arg1);
		    }
		    if (arg0 == 9) {
			Class12.anInt312++;
			Class55.aClass14_Sub10_Sub1_891.method843(0, 226);
			Class55.aClass14_Sub10_Sub1_891.method803(arg3, 104);
			Class55.aClass14_Sub10_Sub1_891.method833((byte) 103,
								  arg1);
		    }
		    if (arg0 == 10) {
			Class55.aClass14_Sub10_Sub1_891.method843(0, 90);
			Class133_Sub4.anInt3603++;
			Class55.aClass14_Sub10_Sub1_891.method803(arg3, 114);
			Class55.aClass14_Sub10_Sub1_891.method833((byte) 113,
								  arg1);
		    }
		} catch (RuntimeException runtimeexception) {
		    break;
		}
		break while_396_;
	    } while (false);
	    Throwable throwable = new Throwable();
	    throw Class14_Sub8_Sub14.method554(throwable,
					       ("kg.D(" + arg0 + ',' + arg1
						+ ',' + arg2 + ',' + arg3 + ','
						+ (arg4 != null ? "{...}"
						   : "null")
						+ ')'));
	} while (false);
    }
    
    public void method475(int arg0, int arg1, Class14_Sub10 arg2) {
	try {
	    if ((arg0 ^ 0xffffffff) != -1) {
		if (1 == arg0)
		    aBoolean2862
			= -2 == (arg2.method798(arg1 + -24686) ^ 0xffffffff);
	    } else {
		aClass125Array4398 = new Class125[arg2.method798(103)];
		int i = 0;
	    while_399_:
		for (/**/; aClass125Array4398.length > i; i++) {
		    int i_0_ = arg2.method798(arg1 ^ 0x60f5);
		    int i_1_ = i_0_;
		while_397_:
		    do {
			do {
			    if (-1 != (i_1_ ^ 0xffffffff)) {
				if (1 != i_1_) {
				    if ((i_1_ ^ 0xffffffff) != -3) {
					if (3 != i_1_)
					    continue while_399_;
				    } else
					break;
				    break while_397_;
				}
			    } else {
				aClass125Array4398[i]
				    = Class129.method1762((byte) 112, arg2);
				continue while_399_;
			    }
			    aClass125Array4398[i]
				= Class14_Sub13.method860(arg2, true);
			    continue while_399_;
			} while (false);
			aClass125Array4398[i]
			    = Class14_Sub8_Sub9.method523(arg2, (byte) -24);
			continue while_399_;
		    } while (false);
		    aClass125Array4398[i]
			= Class53.method1214(arg2, (byte) -123);
		}
	    }
	    anInt4395++;
	    if (arg1 != 24777)
		method576(-68, 77, -73, 50, -52);
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       ("kg.F(" + arg0 + ',' + arg1
						+ ','
						+ (arg2 != null ? "{...}"
						   : "null")
						+ ')'));
	}
    }
    
    public Class14_Sub8_Sub18() {
	super(0, true);
    }
    
    public void method575(int[][] arg0, boolean arg1) {
	try {
	    if (arg1 != true)
		method576(49, 39, 41, 114, -26);
	    int i = Class112.anInt1876;
	    int i_2_ = Class17.anInt407;
	    anInt4387++;
	    Class76.method1363(arg0, 0);
	    Class70.method1314(0, 109, Class115.anInt1927,
			       Class14_Sub10_Sub1.anInt4882, 0);
	    if (null != aClass125Array4398) {
		for (int i_3_ = 0; i_3_ < aClass125Array4398.length; i_3_++) {
		    Class125 class125 = aClass125Array4398[i_3_];
		    int i_4_ = class125.anInt2083;
		    int i_5_ = class125.anInt2079;
		    if (0 <= i_5_) {
			if (0 > i_4_)
			    class125.method1726(65, i_2_, i);
			else
			    class125.method1724(i_2_, -6, i);
		    } else if ((i_4_ ^ 0xffffffff) <= -1)
			class125.method1721(true, i, i_2_);
		}
	    }
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       ("kg.B("
						+ (arg0 != null ? "{...}"
						   : "null")
						+ ',' + arg1 + ')'));
	}
    }
    
    public int[] method484(int arg0, byte arg1) {
	int[] is;
	try {
	    if (arg1 > -58)
		method576(-98, -33, 18, -8, -107);
	    int[] is_6_ = aClass149_2851.method2014(arg0, (byte) 127);
	    anInt4391++;
	    if (aClass149_2851.aBoolean2402)
		method575(aClass149_2851.method2019(true), true);
	    is = is_6_;
	} catch (RuntimeException runtimeexception) {
	    throw Class14_Sub8_Sub14.method554(runtimeexception,
					       ("kg.A(" + arg0 + ',' + arg1
						+ ')'));
	}
	return is;
    }
    
    public int[][] method474(int arg0, int arg1) {
    while_400_:
	do {
	    int[][] is;
	    do {
		int[][] is_7_;
		try {
		    is = aClass95_2838.method1481(1, arg0);
		    if (aClass95_2838.aBoolean1628) {
			int i = Class112.anInt1876;
			int i_8_ = Class17.anInt407;
			int[][] is_9_ = new int[i_8_][i];
			int[][][] is_10_ = aClass95_2838.method1485((byte) 52);
			method575(is_9_, true);
			for (int i_11_ = 0;
			     ((i_11_ ^ 0xffffffff)
			      > (Class17.anInt407 ^ 0xffffffff));
			     i_11_++) {
			    int[] is_12_ = is_9_[i_11_];
			    int[][] is_13_ = is_10_[i_11_];
			    int[] is_14_ = is_13_[1];
			    int[] is_15_ = is_13_[0];
			    int[] is_16_ = is_13_[2];
			    for (int i_17_ = 0; i_17_ < Class112.anInt1876;
				 i_17_++) {
				int i_18_ = is_12_[i_17_];
				is_16_[i_17_] = (Class14_Sub8_Sub26.method617
						 (i_18_ << -866228604, 4080));
				is_14_[i_17_]
				    = Class14_Sub8_Sub26
					  .method617(4080, i_18_ >> 148407172);
				is_15_[i_17_] = (Class14_Sub8_Sub26.method617
						 (i_18_ >> 1207818636, 4080));
			    }
			}
		    }
		    if (arg1 < -4)
			break;
		    is_7_ = null;
		} catch (RuntimeException runtimeexception) {
		    break while_400_;
		}
		return is_7_;
	    } while (false);
	    int[][] is_19_;
	    try {
		anInt4396++;
		is_19_ = is;
	    } catch (RuntimeException runtimeexception) {
		break;
	    }
	    return is_19_;
	} while (false);
	Throwable throwable = new Throwable();
	throw Class14_Sub8_Sub14.method554(throwable,
					   "kg.C(" + arg0 + ',' + arg1 + ')');
    }
    
    public static int method576(int arg0, int arg1, int arg2, int arg3,
				int arg4) {
    while_401_:
	do {
	    do {
		int i;
		try {
		    if (Class60.aBoolean983) {
			arg0 = 1000000;
			Class60.aBoolean983 = false;
		    }
		    anInt4397++;
		    Class71 class71
			= Class150.aClass71ArrayArray2421[arg1][arg2];
		    int i_20_ = class71.anInt1100;
		    float f = class71.aFloat1095;
		    if (!Class14_Sub8_Sub20.aBoolean4420)
			i_20_ = 0;
		    float f_21_
			= ((float) arg4 * 0.1F + 0.7F) * class71.aFloat1089;
		    int i_22_ = class71.anInt1088;
		    float f_23_ = class71.aFloat1096;
		    int i_24_ = class71.anInt1093;
		    if ((i_22_ ^ 0xffffffff) != (Class14_Sub8_Sub16.anInt4355
						 ^ 0xffffffff)
			|| f_21_ != Class138.aFloat2220
			|| f_23_ != Canvas_Sub1.aFloat41
			|| Class69.aFloat1066 != f
			|| (Class103.anInt1728 ^ 0xffffffff) != (i_24_
								 ^ 0xffffffff)
			|| i_20_ != Class14_Sub2_Sub14.anInt3947) {
			Class14_Sub3.aFloat2745 = Class35.aFloat600;
			Class75.anInt1151 = Class15.anInt376;
			Class14_Sub8_Sub16.anInt4355 = i_22_;
			Class22.anInt460 = Class133_Sub6.anInt3673;
			Class69.aFloat1066 = f;
			Class123.aFloat2067 = Class63.aFloat1007;
			Class14_Sub2_Sub14.anInt3947 = i_20_;
			RuntimeException_Sub1.anInt2463 = 0;
			Class138.aFloat2220 = f_21_;
			Class125_Sub2.aFloat3386 = Class14_Sub1.aFloat2709;
			Class14_Sub8_Sub30.anInt4597 = Class133_Sub1.anInt3490;
			Canvas_Sub1.aFloat41 = f_23_;
			Class103.anInt1728 = i_24_;
		    }
		    if (RuntimeException_Sub1.anInt2463 < 65536) {
			RuntimeException_Sub1.anInt2463 += arg0 * 250;
			if (65536 <= RuntimeException_Sub1.anInt2463)
			    RuntimeException_Sub1.anInt2463 = 65536;
			int i_25_
			    = RuntimeException_Sub1.anInt2463 >> 1649983400;
			int i_26_ = (-RuntimeException_Sub1.anInt2463 + 65536
				     >> -1415189752);
			Class133_Sub1.anInt3490
			    = ((i_26_ * Class14_Sub8_Sub30.anInt4597
				- -(i_25_ * Class14_Sub2_Sub14.anInt3947))
			       >> -713627128);
			Class15.anInt376
			    = (((i_25_ * (0xff00
					  & Class14_Sub8_Sub16.anInt4355)
				 + i_26_ * (Class75.anInt1151 & 0xff00))
				& 0xff0000)
			       + (~0xff00ff
				  & (i_25_ * (0xff00ff
					      & Class14_Sub8_Sub16.anInt4355)
				     + ((Class75.anInt1151 & 0xff00ff)
					* i_26_)))) >> -838491544;
			float f_27_
			    = ((float) (65536
					- RuntimeException_Sub1.anInt2463)
			       / 65536.0F);
			float f_28_ = ((float) RuntimeException_Sub1.anInt2463
				       / 65536.0F);
			Class14_Sub1.aFloat2709
			    = (f_27_ * Class125_Sub2.aFloat3386
			       + f_28_ * Class138.aFloat2220);
			Class35.aFloat600 = (Class14_Sub3.aFloat2745 * f_27_
					     + Class69.aFloat1066 * f_28_);
			Class133_Sub6.anInt3673
			    = ((((Class22.anInt460 & 0xff00) * i_26_
				 - -((Class103.anInt1728 & 0xff00) * i_25_))
				& 0xff0000)
			       + ((i_26_ * (Class22.anInt460 & 0xff00ff)
				   + i_25_ * (0xff00ff & Class103.anInt1728))
				  & ~0xff00ff)) >> -1726174616;
			Class63.aFloat1007 = (f_27_ * Class123.aFloat2067
					      + Canvas_Sub1.aFloat41 * f_28_);
		    }
		    Class57.method1248(Class15.anInt376,
				       Class14_Sub1.aFloat2709,
				       Class63.aFloat1007, Class35.aFloat600);
		    Class57.method1250(Class133_Sub6.anInt3673,
				       Class133_Sub1.anInt3490);
		    Class57.method1252((float) Class82.anInt1330,
				       (float) Class49.anInt815,
				       (float) Class52.anInt847);
		    Class57.method1245();
		    if (arg3 == -3217)
			break;
		    i = 2;
		} catch (RuntimeException runtimeexception) {
		    break while_401_;
		}
		return i;
	    } while (false);
	    int i;
	    try {
		i = Class133_Sub6.anInt3673;
	    } catch (RuntimeException runtimeexception) {
		break;
	    }
	    return i;
	} while (false);
	Throwable throwable = new Throwable();
	throw Class14_Sub8_Sub14.method554(throwable,
					   ("kg.G(" + arg0 + ',' + arg1 + ','
					    + arg2 + ',' + arg3 + ',' + arg4
					    + ')'));
    }
    
    static {
	aBoolean4383 = false;
	anIntArrayArray4388
	    = new int[][] { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
			    { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
			    { 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1 },
			    { 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 },
			    { 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1 },
			    { 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
			    { 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1 },
			    { 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0 },
			    { 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0 },
			    { 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1 },
			    { 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 },
			    { 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1 },
			    { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1,
			      1 } };
	anInt4382 = 0;
	aClass124_4393
	    = (Class14_Sub2_Sub2.method263
	       (1178, "RuneScape is loading )2 please wait)3)3)3"));
	aShortArray4392 = new short[] { 960, 957, -21568, -21571, 22464 };
    }
}
